package xcmg.syn.web.order;

import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xcmg.syn.infra.BasicController;
import xcmg.syn.service.order.MmJisoPoHeadService;
import xcmg.syn.service.vo.order.MmJisoPoHeadVO;
import yb.ecp.fast.infra.annotation.FastMappingInfo;
import yb.ecp.fast.infra.infra.ActionResult;

import java.util.List;


@RestController
@RequestMapping("/mmJisoPoHead")
public class MmJisoPoHeadController extends BasicController {
    @Autowired
    private MmJisoPoHeadService mmJisoPoHeadService;

    @PostMapping(value = "/listMmJisoPoHead")
    @ApiOperation("GPS同步订单")
    @FastMappingInfo(needLogin = true)
    public ActionResult<List<MmJisoPoHeadVO>> listMmJisoPoHead(@RequestBody MmJisoPoHeadVO condition) {
        List<MmJisoPoHeadVO> list = mmJisoPoHeadService.queryList(condition);
        return actionResult(list);
    }

}
